home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 4
/
The Arsenal Files 4 (Arsenal Computer).ISO
/
casm
/
au116-as.exe
/
CTRL_BRK.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-10
|
439b
|
27 lines
#include "au.hpp"
/*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*/
/* Keep this function out of the overlay section */
int control_break(void)
{
int opt;
for (;;)
{
fprintf(stderr, "Continue Y/N:");
opt = toupper(my_getch());
fprintf(stderr, "\n");
if (opt=='N')
exit(0);
if (opt=='Y')
break;
}
return 1;
}
void set_ctrl_brk(void)
{
ctrlbrk(control_break);
}